#include "crtSerial.h"
#include <iostream>
#include <unistd.h>



int main()
{
    const std::string ser_com = "/dev/ttyUSB0";
    crtSerial ser(ser_com, 115200);
    int i = 0;
    std::string a;
    while (1) {
        if (ser.in_waitting()) {
            a = ser.read_line();
            std::cout << a;
            ser.write(a);
            
        }
    }
    return 0;
}